package com.atguigu.yygh.oss.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author:hx
 * @DateTime:2022/11/14 19:18
 * @Description:
 */
@Component
@ConfigurationProperties(prefix = "aliyun.oss.file")
@PropertySource(value = "classpath:oss.properties")
@Data
public class OSSProperties {
    private String bucketName;
    private String endpoint;
    private String keyId;
    private String keySecret;
}
